package com.dubbo.demo.service.impl;

import com.dubbo.demo.service.OrderService;
import com.dubbo.demo.service.UserService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Carlos
 * @version 1.0
 * @Description TODO
 * @date 2021/11/1 22:00
 **/
@Service
public class UserServiceImpl implements UserService {

    /**
     * 引用服务
     */
    @Reference
    private OrderService orderService;


    @Override
    public List<String> list() {
        return orderService.list();
    }
}
